﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MVCDemo.Web.Areas.Member.Models
{
    /// <summary>
    /// 登录模型
    /// <remarks>创建：2015.04.01</remarks>
    /// </summary>
    public class LoginViewModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage ="必填")]
        [StringLength(20,MinimumLength =4,ErrorMessage = "{2}到{1}个字符")]
        [Display(Name ="用户名")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage ="必填")]
        [Display(Name ="密码")]
        [StringLength(20,MinimumLength =6,ErrorMessage = "{2}到{1}个字符")]
        [DataType(DataType.Password)]
        public string Password { get; set; }
        /// <summary>
        /// 记住我
        /// </summary>
        [Display(Name ="记住我")]
        public bool RememberMe { get; set; }
    }
}